define(`SCREEN_WIDTH', 1280)dnl
define(`SCREEN_HEIGHT', 800)dnl
define(`BORDER_WIDTH', 1)dnl
define(`EDGE_OFFSET', 16)dnl
define(`RBAR_WIDTH', 96)dnl
define(`RBAR_HEIGHT', 48)dnl

right_bar() {
	while :; do
		date '+%{c}%T'
		sleep 1
	done | lemonbar -p -b -d \
	       		-B 'THEME_BG' \
			-F 'THEME_FG' \
			-g RBAR_WIDTH`'x`'RBAR_HEIGHT+eval(SCREEN_WIDTH - (RBAR_WIDTH + BORDER_WIDTH * 2 + EDGE_OFFSET))+eval(EDGE_OFFSET + BORDER_WIDTH * 2) \
			-f 'THEME_FONT_STRING3' \
			-r 'BORDER_WIDTH' \
			-R 'THEME_BORDER_ACTIVE'
}

trap 'kill -HUP 0' EXIT
right_bar&

wait
